import Vue from 'vue'
import Vuex from 'vuex'
import factor from './modules/factor'
import question from './modules/question'
import school from './modules/school'

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    loading: false
  },
  mutations: {
    // 修改loading状态
    setLoading (state, status) {
      state.loading = status;
    }
  },
  modules: {
    factor, question, school
  },
  strict: true
});
